<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>注册信息</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <%
    	request.setCharacterEncoding("utf-8");//post
    	String name=request.getParameter("name");   	
    	String pwd=request.getParameter("pwd");
    	String sex=request.getParameter("gender");
    	String borndate=request.getParameter("year");
    	String[] channels=request.getParameterValues("channel");
    	  	
     %>
     <div align="center">
     	<table border="0" align="center">
     		<tr>
     			<td width="80" height="20">用户名：</td>
     			<td><%=name%></td>
     		</tr>
     		<tr>
     			<td height="20">密码：</td>
     			<td><%=pwd%></td>
     		</tr>
     		<tr>
     			<td height="20">性别：</td>
     			<td><%=sex%></td>
     		</tr>
     		<tr>
     			<td height="20">出生日期：</td>
     			<td><%=borndate%></td>
     		</tr>
     		<tr>
     			<td height="20">信息来源：
     			<% 
     				if(channels!=null){
     					for(String channel:channels){
     						//channel=new String(channel.getBytes("ISO-8859-1"),"utf-8"); //get
     						out.print(channel+"&nbsp;");
     					}
     				}   			
     			%>
     			</td>
     		</tr>
     	</table>
     </div>
  </body>
</html>
